package com.hy.mydesktop.client.component.meta;

import com.extjs.gxt.ui.client.widget.Layout;

/**
 * 
 * <ul>
 * <li>开发作者：汤莉</li>
 * <li>设计日期：2010-8-29；时间：下午03:52:46</li>
 * <li>类型名称：TextFieldModel</li>
 * <li>设计目的：</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */
public class TextFieldModel {

	/**
	 * 是否允许为空
	 */
	private boolean allowBlank;
	
	/**
	 * 空值文本ֵ
	 */
	private String emptyText;
	
	/**
	 * 最大高度
	 */
	private int maxLength;

	/**
	 * 最小高度
	 */
	private int minLength;
	
	/**
	 * 密码框模式
	 */
	private boolean passWord;
	
	/**
	 * 正则表达式
	 */
	private String regex;
	
	/**
	 * 值ֵ
	 */
	private String value;
	
	/**
	 * 标签
	 */
	private String fieldLabel;
	/**
	 * 控件名
	 */
	private String name;
	/**
	 * 布局
	 */
	private Layout layout;

	public boolean isAllowBlank() {
		return allowBlank;
	}

	public void setAllowBlank(boolean allowBlank) {
		this.allowBlank = allowBlank;
	}

	public String getEmptyText() {
		return emptyText;
	}

	public void setEmptyText(String emptyText) {
		this.emptyText = emptyText;
	}

	public int getMaxLength() {
		return maxLength;
	}

	public void setMaxLength(int maxLength) {
		this.maxLength = maxLength;
	}

	public int getMinLength() {
		return minLength;
	}

	public void setMinLength(int minLength) {
		this.minLength = minLength;
	}

	public boolean isPassWord() {
		return passWord;
	}

	public void setPassWord(boolean passWord) {
		this.passWord = passWord;
	}

	public String getRegex() {
		return regex;
	}

	public void setRegex(String regex) {
		this.regex = regex;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getFieldLabel() {
		return fieldLabel;
	}

	public void setFieldLabel(String fieldLabel) {
		this.fieldLabel = fieldLabel;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Layout getLayout() {
    	return layout;
    }

	public void setLayout(Layout layout) {
    	this.layout = layout;
    }
	
}
